package com.gxa.admin.mapper;

import com.gxa.admin.param.UserParam;
import com.gxa.o2o.core.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserMapper {
    /**
     * 通过条件分页查询
     * @param param
     * @return
     */
    List<User> findByParam(@Param("param") UserParam param);



    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 批量删除（逻辑删除）
     * @param ids
     * @return
     */
    Integer updateDeleteByIds(@Param("ids")List<String> ids);


}